package com.etcxy.extendsDemo;

public class StudentDemo extends Grade {
	private String name;
	private String age;

	
	public StudentDemo(String name, String age) {
		super();
		this.name = name;
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public void introduceSelf() {
		System.out.println("I'm " + name + ", and I'm" + age + " from " + super.getDegree());
	}
}
